给父容器after或者before(适用于每行3或者4列) .box:after { display:block; content:""; width: 32%; height:0px; } 本人亲测有效,希望能帮助到需要的小伙伴,加油!